package com.gogo.mall.controller;

import com.gogo.mall.entity.QyProduct;
import com.gogo.mall.service.QyProductService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (QyProduct)表控制层
 *
 * @author yangjing
 * @since 2021-09-02 16:05:28
 */
@RestController
@RequestMapping("qyProduct")
public class QyProductController {
    /**
     * 服务对象
     */
    @Resource
    private QyProductService qyProductService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public QyProduct selectOne(Integer id) {
        return this.qyProductService.queryById(id);
    }

}
